package com.platform.api.bzproject.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.github.pagehelper.PageInfo;
import com.platform.api.bzproject.model.BalanceRecord;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.Collection;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 余额记录表 Mapper 接口
 * </p>
 *
 * @author guoshao
 * @since 2021-10-29
 */
public interface BalanceRecordMapper extends BaseMapper<BalanceRecord> {

    BigDecimal selectSumMoney(BalanceRecord record);

    List<BigDecimal> thisMonth(BalanceRecord record);

    List<BigDecimal> lastMonth(BalanceRecord record);

    List<BalanceRecord> selectBalanceRecordList(BalanceRecord balanceRecord);

    int getRecordCount(@Param("userId")String userId);

    List<Long> getRandId(Map<String,Object> map);

    Integer getDownCount(Map<String,Object> map);

    List<BalanceRecord> selecttBalanceRecordListNew(BalanceRecord balanceRecord);
}
